package com.lj.common.constant;

/**
 * 基础公共常量类
 *
 * @author 小李飞刀
 */
public class BaseConstant {

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 未被删除
     */
    public static final String IS_NOT_DEL = "0";

    /**
     * 系统配置缓存键值前缀
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 验证码缓存键值前缀
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码类型-数字
     */
    public static final String MATH_TYPE = "math";

    /**
     * 验证码类型-字符串
     */
    public static final String CHAR_TYPE = "char";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 菜单类型（菜单）
     */
    public static final String TYPE_MENU = "C";

    /**
     * 菜单类型（目录）
     */
    public static final String TYPE_DIR = "M";

    /**
     * 是否菜单外链（否）
     */
    public static final String NO_FRAME = "1";
    /**
     * http 请求地址前缀
     */
    public static final String HTTP = "http://";

    /**
     * https 请求地址前缀
     */
    public static final String HTTPS = "https://";

    /**
     * InnerLink组件标识
     */
    public final static String INNER_LINK = "InnerLink";

    /**
     * Layout组件标识
     */
    public final static String LAYOUT = "Layout";

    /**
     * ParentView组件标识
     */
    public final static String PARENT_VIEW = "ParentView";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 开始时间
     */
    public static final String BEGIN_TIME = "beginTime";

    /**
     * 开始时间
     */
    public static final String END_TIME = "endTime";

    private BaseConstant() {
    }
}
